//
//  CommonConfig.swift
//  SinaWeibo
//
//  Created by 郭平 on 15/10/9.
//  Copyright © 2015年 郭平. All rights reserved.
//

import Foundation
import UIKit

let SCREENW = UIScreen.mainScreen().bounds.size.width
let SCREENH = UIScreen.mainScreen().bounds.size.height

func printLog<T>(message: T,error: Bool = false, fileName: String = __FILE__, line: Int = __LINE__, methodName: String = __FUNCTION__){
    
    #if DEBUG
        
        print("\((fileName as NSString).lastPathComponent)[\(line)], \(methodName): \(message)")

    #endif
    
}

func RGB(r r: CGFloat,g: CGFloat, b: CGFloat) -> UIColor {
    
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
    
}